import { LOCAL_STORAGE_PREFIX } from '@/config'

export const setItem = (name, token) => {
  localStorage.setItem(`${LOCAL_STORAGE_PREFIX}_${name}`, token)
}

export const getItem = (name) => {
  return localStorage.getItem(`${LOCAL_STORAGE_PREFIX}_${name}`) || ''
}

export const removeItem = (name) => {
  return localStorage.removeItem(`${LOCAL_STORAGE_PREFIX}_${name}`)
}
